



package com.formen.ndk;

import java.io.*;
import java.sql.*;

import android.app.*;
import android.content.*;
import android.graphics.*;
import android.net.*;
import android.os.*;
import android.provider.*;
import android.view.*;
import android.widget.*;

public class Singin extends Activity {

	// ȸ����
	EditText id, pwd, name, birth, phone, status_msg, location;
	LinearLayout signlayout;
	ProgressDialog dialog;



	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.signin);
		signlayout = (LinearLayout) findViewById(R.id.signlayout);
		signlayout.setBackgroundColor(Color.WHITE);

		// Ȯ�ι�ư
		Button btnok = (Button) findViewById(R.id.btnok);
		btnok.setOnClickListener(new View.OnClickListener() {

			public void onClick(View arg0) {
				// TODO Auto-generated method stub

				id = (EditText) findViewById(R.id.id);
				pwd = (EditText) findViewById(R.id.pwd);
				name = (EditText) findViewById(R.id.name);
				birth = (EditText) findViewById(R.id.birth);
				phone = (EditText) findViewById(R.id.phone);
				status_msg = (EditText) findViewById(R.id.status_msg);
				location = (EditText) findViewById(R.id.location);


				Intent outIntent=new Intent(getApplicationContext(), MainActivity.class);
				outIntent.putExtra("Id", id.getText().toString());
				outIntent.putExtra("Pwd", pwd.getText().toString());
				outIntent.putExtra("Name", name.getText().toString());
				outIntent.putExtra("Birth", birth.getText().toString());
				outIntent.putExtra("Phone", phone.getText().toString());
				outIntent.putExtra("Status", status_msg.getText().toString());
				outIntent.putExtra("Location", location.getText().toString());
				setResult(RESULT_OK, outIntent);
				finish();
				

				// finish();

			}
		});
		



	}

}
